using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using UnityEngine;

public struct RotatingCube:IComponentData
{
    public float Value;
}

public class RotatingCubeAuthoring : MonoBehaviour
{
    private class Baker:Baker<RotatingCubeAuthoring>
    {
        public override void Bake(RotatingCubeAuthoring authoring)
        {
            Entity entity = GetEntity(TransformUsageFlags.Dynamic);
            AddComponent(entity,new RotatingCube());
        }
    }
}
